<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<s:if test="userListMap.size() > 0">
    <s:iterator value="userListMap.keySet()" id="list">
        <li>
            <h3><s:property value="#list"/></h3>
            <s:iterator value="userListMap.get(#list)" id="user">
                <p style="white-space:normal;"><s:property value="#user.name"/></p>
                <input style="position: absolute;top: inherit;margin-top: -20px;" type="checkbox" data-mini="false" class="ui-btn-right" name="check_user" id='<s:property value="#user.id"/>' key="<s:property value="#user.name"/>"/>
            </s:iterator>
        </li>
    </s:iterator>
</s:if>

<script>
    var ck_ids=$("#hi_ids").val();
    if(ck_ids!=null && ck_ids!=" "){
        var sid=ck_ids.split(",");
        $("input[name='check_user']").each(function(k,j){
            $.each(sid,function(i,v){
                if(v==$(j).attr("id")){
                    $(j).prop("checked",true);
                }
            });
        });
    }
</script>

